#include <Windows.h>
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
#include <msctf.h>
#include <stdio.h>
#include <string>
#include "w32.h"
#include "GUI.h"
#include "winproc.h"

std::wstring iptstr;

extern "C" HRESULT __declspec(dllexport) QueryObject(REFIID iid, void** ppObj)
{
	return 10086;
}

int main(_In_ int _Argc, _In_count_(_Argc) _Pre_z_ char ** _Argv, _In_z_ char ** _Env)
{	
	MessageLoop *loop = CreateMessageLoop();

	TsfApp* lpApp = new TsfApp(loop);

	lpApp->InitApp();

	while(!loop->IsQuit())
	{
		loop->LoopOnce();
	}

	loop->Release();
	lpApp->Release();
	
	return 0;
}
